# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=liblc3
pkgver=1.0.4
pkgrel=0
pkgdesc="An efficient low latency audio codec"
url="https://github.com/google/liblc3"
arch="all"
license="Apache-2.0"
makedepends="meson"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/liblc3/archive/refs/tags/v$pkgver.tar.gz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
bc047aa26059f2b2a7f5275b580f39a9237ffdd6da03645c7e95957447ba7410768ae5c08fcf1e0ac16fac873be4cbf62695b2298ef72f54f09e577664c27255  liblc3-1.0.4.tar.gz
"
